<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>缴存基本情况</title>
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport"content="width=device-width, initial-scale=1, maximum-scale=1">
<script src="../../../js/angular.js"></script>
<link rel="stylesheet" href="../../../layui/css/layui.css" media="all">
<script type="text/javascript" src="../../../layui/lay/modules/layer.js"></script>
<script src="../../../layui/jquery-3.2.1.min.js" charset="utf-8"></script>
<script src="../../../layui/layui.js" charset="utf-8"></script>
<style>
         .layui-form-label{
         	 text-align: left;
             width:130px;
             height:30px;
     }
</style>
</head>
<body>
<div align="center">
	<fieldset class="layui-elem-field layui-field-title"
		style="margin-top: 20px;">
		<legend align="center">手机号是可以变更的哦</legend>
	</fieldset>
	<br>
	<form class="layui-form" action="">
		<div class="layui-form-item">
			<div class="layui-inline" >
				<label class="layui-form-label">姓名:</label>
				<div class="layui-input-inline">
					<input type="text" id="XINGMING" name="XINGMING" autocomplete="off"
						class="layui-input" readonly="readonly">
				</div>
			</div>
			<div class="layui-inline" >
				<label class="layui-form-label">证件号码:</label>
				<div class="layui-input-inline">
					<input type="text" id="ZJHM" name="email" id="ZJHM" autocomplete="off"
						class="layui-input" readonly="readonly">
				</div>
			</div>
		</div>
		<div class="layui-form-item">
			<div class="layui-inline" >
				<label class="layui-form-label">单位名称:</label>
				<div class="layui-input-inline">
					<input type="text" id="DWMC" name="DWMC" autocomplete="off"
						class="layui-input" readonly="readonly">
				</div>
			</div>
			<div class="layui-inline" >
				<label class="layui-form-label">开户日期:</label>
				<div class="layui-input-inline">
					<input type="text" id="KHRQ" name="KHRQ" autocomplete="off"
						class="layui-input" readonly="readonly"> 
				</div>
			</div>
		</div>

		<div class="layui-form-item">
			<div class="layui-inline" >
				<label class="layui-form-label">个人账户状态:</label>
				<div class="layui-input-inline">
					<input type="text" id="GRZHZT" name="GRZHZT" autocomplete="off"
						class="layui-input" readonly="readonly">
				</div>
			</div>
			<div class="layui-inline" >
				<label class="layui-form-label" >个人账户余额:</label>
				<div class="layui-input-inline">
					<input type="text" id="GRZHYE" name="GRZHYE" autocomplete="off"
						class="layui-input" readonly="readonly">
				</div>
			</div>
		</div>


		<div class="layui-form-item">
			<div class="layui-inline">
				<label class="layui-form-label">最后缴交时间:</label>
				<div class="layui-input-inline">
					<input type="text" id="ZHJJSJ" name="ZHJJSJ" autocomplete="off"
						class="layui-input" readonly="readonly">
				</div>
			</div>
			<div class="layui-inline" >
				<label class="layui-form-label">手机号码:</label>
				<div class="layui-input-inline">
					<input type="text" id="SJHM" name="SJHM" autocomplete="off"
						class="layui-input">
				</div>
			</div>
		</div>
		 <input id="submit" type="button" class="layui-btn layui-btn-primary" value="确&nbsp;&nbsp;认&nbsp;&nbsp;更&nbsp;&nbsp;改"style="width: 20%">
	</form>
</div>
	<script>
		layui.use('element', function() {
			var $ = layui.jquery, element = layui.element; //Tab的切换功能，切换事件监听等，需要依赖element模块
		});
	</script>
	<script type="text/javascript">
	
	function getPath() {  
	     
	        return 'http://'+location.host;
	}
		
		
	</script>
	<script src="../../../layui/jquery-3.2.1.min.js" charset="utf-8"></script>
	<script type="text/javascript" src="../../../layui/lay/modules/layer.js"></script>
	<script type="text/javascript" src="../../../layui/layer.ext.js"></script>
	<script type="text/javascript">

		$(function(){
			$.ajax({
				url : getPath()+'/wsyyt/jcjbqkcontroller/test',
				method : 'post',
				dataType : 'JSON',
				success : function(result) {
						
					var data = result.data;//这边的data属性是object
					if(result.code==0){
						$.each(data[0], function(key, value) {
							$("#" + key).val(value);
						});
					}else{
						layer.msg('提示：'+result.CW,{icon: 5});	
					}
				},
			});
			$.ajax({
				url : getPath()+'/wsyyt/jcjbqkcontroller/test1',
				method : 'post',
				dataType : 'JSON',
				success : function(result) {
				var data = result.data;
				var x=[];
				var y=[];
				for(var i=0;i<data.length;i++){
					var a=data[i].JJNY;
					var b=data[i].GRYJCE;
					x.push(a);
					y.push(b);
				}
					f(x,y);
				},
			});
		});
	</script>
</body>
</html>
